﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default"
    MasterPageFile="~/Template.master" Culture="auto" UICulture="auto" EnableViewState="false" %>

<%@ Register Src="Controls/ProductListHorizontal.ascx" TagName="ProductListHorizontal"
    TagPrefix="uc1" %>
<asp:Content EnableViewState="false" ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="floatbox PageDescription">
        <div class="item">
            <h5>
                <asp:Literal runat="server" meta:resourcekey="Title" />
            </h5>
            <div class="content" style="text-align: left">
                <div style="color: #D5E8AD; width: 58%; font-style: italic">
                    <asp:Literal runat="server" meta:resourcekey="SiteDescription" />
                </div>
            </div>
        </div>
    </div>
    <% if (Roles.IsUserInRole("Administrator"))
       { %>
    <asp:ScriptManager runat="server" ScriptMode="Release">
        <Services>
            <asp:ServiceReference Path="~/WebServices/ProductService.svc" />
        </Services>
    </asp:ScriptManager>
    <% } %>
    <div class="floatbox item">
        <uc1:ProductListHorizontal DataSourceID="FeaturedProductsDS" ItemsInBox="5" runat="server"
            meta:resourcekey="FeaturedProducts" />
    </div>
    <div class="floatbox item">
        <uc1:ProductListHorizontal DataSourceID="BestSellingProductsDS" ItemsInBox="5" runat="server"
            meta:resourcekey="BestSellingProducts" />
    </div>
</asp:Content>
<asp:Content ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
    function ChangeFeatured_onSucceed(result)
    {
        
    }
    function ChangeFeatured_onFailed()
    {
        alert("Failed");
    }
    </script>

</asp:Content>
